module.exports = {
  // ... 其他配置 ...
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          'style-loader',
          {
            loader: 'css-loader',
            options: {
              modules: {
                auto: true,
                localIdentName: '[name]__[local]--[hash:base64:5]',
                exportLocalsConvention: 'camelCase',
                exportGlobals: true
              },
              sourceMap: true
            }
          }
        ]
      }
    ]
  }
} 